package com.health.platform.provider.hospitalservices.controller;

import com.health.platform.common.core.entity.BaseQueryEntity;
import com.health.platform.common.restful.AppResponse;
import com.health.platform.provider.homepage.service.HomePageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.health.platform.provider.hospitalservices.service.HospitalServicesService;

import java.lang.reflect.InvocationTargetException;

/**
 * <p>医疗服务-医院服务</p>
 * <p>创建日期：2021-03-02</p>
 */
@RestController
@RequestMapping("hs")
public class HospitalServicesController {

    @Autowired
    private HospitalServicesService hosService;



    /**
     * 获取中间部分汇总信息
     * @param baseQueryEntity 参数
     * @return 结果
     */
    @RequestMapping("/getSummaryInfo")
    public AppResponse getSummaryInfo(@RequestBody BaseQueryEntity baseQueryEntity)throws NoSuchMethodException,
            IllegalAccessException, IllegalArgumentException, InvocationTargetException {
        return hosService.getSummaryInfo(baseQueryEntity);
    }
    /**
     * 获取就诊人次变化
     * @param baseQueryEntity 参数
     * @return 结果
     */
    @RequestMapping("/getSeeDoctor")
    public AppResponse getSeeDoctor(@RequestBody BaseQueryEntity baseQueryEntity) {
        return hosService.getSeeDoctor(baseQueryEntity);
    }

    /**
     * 出院患者平均住院趋势
     * @param baseQueryEntity 参数
     * @return 结果
     */
    @RequestMapping("/getHd")
    public AppResponse getHd(@RequestBody BaseQueryEntity baseQueryEntity) {
        return hosService.getHd(baseQueryEntity);
    }
}
